<form action="member_group.manage.php?action=update" id="form1" name="form1" method="post" style="padding-bottom:20px;">
<table class="from_table2_one">
	<thead>
		<tr class="area_ajax_list_title">
			<th class="pd-left"><tpl> $langSysMgDel </tpl></th>
			<th><tpl> $langSysMgName </tpl></th>
			<th><tpl> $langSysMgExpInterval </tpl></th>
			<th><tpl> $langSysMgStarsNum </tpl></th>
			<th></th>
		</tr>
	</thead>
	<tpl> section name=loop loop=$group_array </tpl>
	<input  type="hidden" name="mg_id[<tpl> $group_array[loop].mg_id </tpl>]" value="<tpl> $group_array[loop].mg_id </tpl>" />
	<tr>
		<td class="pd-left-1"><input type="checkbox" name="del_id[<tpl> $group_array[loop].mg_id </tpl>]" value="<tpl> $group_array[loop].mg_id </tpl>" /></td>
		<td><input  type="text" name="group_name[<tpl> $group_array[loop].mg_id </tpl>]" value="<tpl> $group_array[loop].mg_name </tpl>" /></td>	
		<td><input  type="text" name="group_lower[<tpl> $group_array[loop].mg_id </tpl>]" value="<tpl> $group_array[loop].mg_score_lower </tpl>" />~<input  class="no-gaibian" readonly="readonly" type="text" name="group_higher[<tpl> $group_array[loop].mg_id </tpl>]" value="<tpl> $group_array[loop].mg_score_higher </tpl>" /></td>
		<td><input  type="text" maxlength="2" name="group_stars[<tpl> $group_array[loop].mg_id </tpl>]" value="<tpl> $group_array[loop].mg_stars </tpl>" /></td>
		<td><a href="javascript:;" onclick="ajax_set('<tpl> $group_array[loop].mg_id </tpl>');"><tpl> $langSysMgInfo </tpl></a></td>
	</tr>
	<tpl> /section </tpl>

</table>
<div class="table-5-bottom"><div class="p-left"><span class="btn_left"><input type="submit" class="btn_submit" value="<tpl> $langSysMgSubmit </tpl>" /></span>

<span class="btn_left"><input  class="btn_submit" type="button" value="<tpl> $langSysMgAddNewGroup </tpl>" onclick="$('#new_group').append('<input  type=\'text\' name=\'new_name[]\' /> <input  type=\'text\' name=\'new_lower[]\' value=\'0\' />~<input class=\'no-gaibian\' readonly=\'readonly\' type=\'text\' title=\'<tpl> $langSysMgIntervalTop </tpl>\' value=\'<tpl> $langSysMgIntervalTop </tpl>\' /><input class=\' left-jl\' type=\'text\' name=\'new_stars[]\' value=\'0\' maxlength=\'2\' />');" /></span>

</div></div>
<div id="new_group"></div>
</form>
<script>
$(document).ready(function() {
	hideLoading();
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
			hideLoading();
			showMessage(msg.message,msg.type);
			if(msg.type == 1){
				ShowDiv	= 'result_content';
				getPageContent("member_group.manage.php?action=ajax_list");
			}
		},
		type:      'post',
		dataType:  'json'
	};
	//submit
	$("#form1").validate({
		errorClass: "wrong",
		rules: {
		},
		messages: {
		},
		submitHandler: function() {
			$('#form1').ajaxSubmit(options);
		}
	});
});

function ajax_set(id){
	ShowDiv = "result_content";
	getPageContent("member_group.manage.php?action=set&id="+id);
}
</script>
</html>
